package com.mikhailenko.transportMVC.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import com.mikhailenko.transportMVC.model.Term;

public interface TermRepository extends JpaRepository<Term, Integer>{

	@Query("SELECT term FROM terms term WHERE term.name = :name ")
	Term findByName(@Param("name") String name);
}
